home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 144_01 / sortm.hlp < prev    next >
Text File  |  1985-08-19  |  2KB  |  53 lines

  1. **********************************************************************
  2. *                               SORTM                                *
  3. **********************************************************************
  4. *                  COPYRIGHT 1983 EUGENE H. MALLORY                  *
  5. **********************************************************************
  6. PROGRAM:
  7.     SORTM - Sorts a file on a specified key
  8. USAGE:
  9.     SORTM [<fid] [-R] [-U] [-Cn] [-Ln] [-H] [>fid]
  10. FUNCTION:
  11.     This program does an internal sort on multiple files.
  12.     Input is a  list of file names. Output is The same list of files.
  13.     All files named are sorted acordin# to the options listed below.
  14.     
  15.     Options include:
  16.     
  17.     -R   Reverse order sort.
  18.     -U   Convert to upper case before comparing.
  19.     -Cn  First column to begin compare. 1 is default.
  20.          It is ok to specify a position longer than some
  21.          lines.  Lines shorter will compare as equal.
  22.     -Ln  Length of field to compare.  Full line length is default.
  23.     -H   Display the available options.
  24.     
  25. EXAMPLE:
  26.     SPLIT <BIGFILE |SORTM <A -C10L10R |MERGEM -C10L10R >BIGFILE.SRT
  27. COMMENTS:
  28.     This is an internal sort which uses the available space in memory.
  29.     If an input file is too big, an out of space error will be given.
  30.     
  31.     The sort is "stable" and it is possible to sort on a less 
  32.     significant field first and a more significant field second.
  33.     Cascading sorts in this way can give sorts on complicated keys
  34.     with some descending and some ascending.
  35.     
  36.  
  37.  
  38.         Command Line                       
  39.  
  40. ___________________________________  
  41.                                   |  
  42.                                   |  
  43.                                   |  OPTIONS
  44.                                   |  
  45.                                   |                  
  46.                     ______________V______________    
  47.  Standard Input     |                           |   Standard Output
  48.    FILE LIST        |                           |      FILE LIST   
  49. ------------------->|            SORTM          |----------------------->
  50.                     |                           |
  51.                     |                           |
  52.                     |___________________________|
  53.